import { TypedEventEmitter } from "./index";

interface ApiEventMap {
  init: { version: string };
  error: { error: Error; module: string };
  "token-updated": { newToken: string | null };
  log: { message: string; level: "info" | "warn" | "error" };
}
/** 请求事件 */
const ApiEventEmitter = new TypedEventEmitter<ApiEventMap>();
export default ApiEventEmitter;
